package com.aidong.video.entity;

import java.io.Serializable;
import java.text.DecimalFormat;

import com.aidong.util.ReadPropertiesUtil;

public class FoodList implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7076469658465454260L;

	private String foodUrl;//商品图片路径
	private String foodName;//商品名称
    private double foodPrice;//商品价格
    private int ruleId;//规则ID
    private int goodsType;//类型
	public String getFoodUrl() {
		return  ReadPropertiesUtil.getIMGREAD(foodUrl);//return foodUrl;
	}
	public void setFoodUrl(String foodUrl) {
		this.foodUrl = foodUrl;
	}
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public String getFoodPrice() {
		if(foodPrice==0){
			return "0";
		}
		return  new DecimalFormat("#0.00").format(foodPrice);
	}
	public void setFoodPrice(double foodPrice) {
		this.foodPrice = foodPrice;
	}
	public int getRuleId() {
		return ruleId;
	}
	public void setRuleId(int ruleId) {
		this.ruleId = ruleId;
	}
	public int getGoodsType() {
		return goodsType;
	}
	public void setGoodsType(int goodsType) {
		this.goodsType = goodsType;
	}
    
}
